import router from "./index"
// import login from "../views/Login"

router.beforeEach((to, from, next) => {
    if (to.meta.isLogin) {
        // let token = login.data.token;
        let token = false;
        if (token) {
            next();
        } else {
            next({
                name: "Login"
            })
        }
    } else {
        next();
    }
})